import request from '@/utils/request';

export async function reqTyRoleMenuList(data: any, options?: any): Promise<any> {
	return request('/api/sys/roleMenu/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyRoleMenu(data: any, options?: any): Promise<any> {
	return request('/api/sys/roleMenu/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyRoleMenu(data: any, options?: any): Promise<any> {
	return request('/api/sys/roleMenu/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyRoleMenu(data: any, options?: any): Promise<any> {
	return request('/api/sys/roleMenu/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


